package com.qf.deviceconsumeropenfeign9003.openfeign.fallabck;

import com.qf.deviceconsumeropenfeign9003.openfeign.DeviceFeign;
import com.qf.java2106.pojo.Device;
import org.springframework.stereotype.Component;

/**
 * @author q
 * @version V1.0
 * @date 2022/01/19
 **/
@Component
public class DeviceFeignFallback implements DeviceFeign {

    /**
     * 降级方法
     * @param id
     * @return
     */
    @Override
    public String testVar(Integer id) {
        return "feign hystrix testVar!!";
    }

    @Override
    public String testUrlVar(String name) {
        return null;
    }

    @Override
    public String testManyVar(Integer id, String name) {
        return null;
    }

    @Override
    public Device testJson(Device device) {
        return null;
    }

    @Override
    public String testCookie(Device device) {
        return null;
    }
}
